package net.csdn.business.notify.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;


/**
 * @ClassName RespStatusEnum
 * @Description 责任链的执行状态枚举
 * @Author zhangyl
 * @Date 2023/11/28 18:11
 */
@Getter
@ToString
@AllArgsConstructor
public enum ProcessStatusEnum {

    /**
     * OK：操作成功
     */
    SUCCESS(1000, "success"),
    PART_SUCCESS(2000, "part success"),
    FAIL(3000, "fail"),


    /**
     * 客户端
     */
    PARAMETERS_IS_NULL(3001, "params is null!"),
    CONTEXT_IS_NULL(3002, "context is null"),
    PROCESS_TYPE_IS_NULL(3003, "process type is null"),
    PROCESS_IS_NULL(3004, "process  is null"),
    PROCESS_ACTION_IS_NULL(3005, "process action is null"),


    CLIENT_BAD_PARAMETERS(3006, "params %s is not allow null"),
    REMIND_PARAMS_ERROR(3007, "params is error "),
    TEMPLATE_CONNTENT_ERROR(3008, "notify channel template conntent prase error!"),
    TEMPLATE_NOT_FOUND(3009, "template is not exist"),
    EXCEED_BATCH_NUM_LIMIT(3010, "batch size exceed limit!"),
    EXCEED_RECEIVER_NUM_LIMIT(3011, "receiver size exceed limit!"),
    SEND_MQ_ERROR(3012, "send mq error!"),
    BUS_CODE_NOT_FOUND(3013, "business code is error!"),
    BUS_CODE_NOT_ALLOW(3014, "this business code is not allow"),

    /**
     * 系统
     */
    /*SERVICE_ERROR(5006, "服务执行异常"),

    RESOURCE_NOT_FOUND(404, "资源不存在"),*/


    /**
     * pipeline
     */



    ;

    /**
     * 响应状态
     */
    private final int code;
    /**
     * 响应编码
     */
    private final String msg;



}
